package com.heima.task.job;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;

import java.util.Date;

/**
 * @BelongsProject: heima-leadnews
 * @BelongsPackage: com.heima.task.job
 * @Author: wangjian
 * @CreateTime: 2022-07-07  17:49
 * @Description: TODO
 * @Version: 1.0
 */

public class TestJob {

    @XxlJob("helloJob")
    public ReturnT<String> jobHandler(String param) throws Exception {
        System.out.println("每5秒吃一次饭,我要吃成一个胖子..." + new Date());
        return ReturnT.SUCCESS;
    }
}
